import request from '@/utils/request'

// //执行出库
export function executeAdjustOutBill(data) {
  return request({
    url: '/bill/purchaseReturn/execute',
    method: 'post',
	data
  })
}

// 查询采购退货单列表
export function listBill(query) {
  return request({
    url: '/bill/purchaseReturn/list',
    method: 'get',
    params: query
  })
}

// 查询采购退货单详细
export function getBill(id) {
  return request({
    url: '/bill/purchaseReturn/' + id,
    method: 'get'
  })
}

// 新增采购退货单
export function addBill(data) {
  return request({
    url: '/bill/purchaseReturn',
    method: 'post',
    data: data
  })
}

// 修改采购退货单
export function updateBill(data) {
  return request({
    url: '/bill/purchaseReturn',
    method: 'put',
    data: data
  })
}

// 确认取消
export function confirmCancel(data) {
  return request({
    url: '/bill/purchaseReturn/confirmCancel',
    method: 'put',
    data: data
  })
}

// 删除采购退货单
export function delBill(id) {
  return request({
    url: '/bill/purchaseReturn/' + id,
    method: 'delete'
  })
}
